home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / ATL / include / Comdef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  982 b   |  43 lines

  1. /***
  2. * comdef.h - Native C++ compiler COM support - main definitions header
  3. *
  4. *    Copyright (C) 1996-1997 Microsoft Corporation
  5. *    All rights reserved.
  6. *
  7. ****/
  8.  
  9. #if _MSC_VER > 1000
  10. #pragma once
  11. #endif
  12.  
  13. #if !defined(_INC_COMDEF)
  14. #define _INC_COMDEF
  15.  
  16. #ifndef  __cplusplus
  17. #error Native Compiler support only available in C++ compiler
  18. #endif
  19.  
  20. #if !defined(_COM_SMARTPTR)
  21.  #if !defined(_INC_COMIP)
  22.   #include <comip.h>
  23.  #endif
  24.  #define _COM_SMARTPTR        _com_ptr_t
  25.  #define _COM_SMARTPTR_LEVEL2 _com_IIID
  26. #endif
  27. #if defined(_COM_SMARTPTR)
  28.  #if !defined(_COM_SMARTPTR_TYPEDEF)
  29.   #if defined(_COM_SMARTPTR_LEVEL2
  30.    #define _COM_SMARTPTR_TYPEDEF(Interface, IID) \
  31.     typedef _COM_SMARTPTR<_COM_SMARTPTR_LEVEL2<Interface, &IID> > \
  32.             Interface ## Ptr
  33.   #else
  34.    #define _COM_SMARTPTR_TYPEDEF(Interface, IID) \
  35.     typedef _COM_SMARTPTR<Interface, &IID> \
  36.             Interface ## Ptr
  37.   #endif
  38.  #endif
  39. #endif
  40.  
  41. #endif  /* _INC_COMDEF */
  42.  
  43.